package cn.iocoder.yudao.module.vr.controller.admin.testoption.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
* 试题选项 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class TestOptionBaseVO {

    @Schema(description = "所属试题id", required = true, example = "18478")
    @NotNull(message = "所属试题id不能为空")
    private Long testId;

    @Schema(description = "题内排序", required = true)
    @NotNull(message = "题内排序不能为空")
    private Integer order;

    @Schema(description = "选项描述", required = true)
    @NotNull(message = "选项描述不能为空")
    private String content;

    @Schema(description = "是否正确答案")
    private Boolean correct;

    @Schema(description = "选项图片", example = "https://www.iocoder.cn")
    private String pictureUrl;

}
